<div id="page">
	
	<img src="{{=URL_SITE}}?titrettf=1&txt={{=trad('TABLEAU DE BORD GORILLAZ', APPLNG)}}" alt="{{=trad('TABLEAU DE BORD GORILLAZ', APPLNG)}}" title="{{=trad('TABLEAU DE BORD GORILLAZ', APPLNG)}}" /><p />
	
	<div class="sep"></div>
	<a href="{{=rw('echantillons', 'buyers_list=1')}}">{{=trad('Exporter les demandes d\'échantillons', APPLNG)}}</a>
	<div class="sep"></div>
	<a name="menu"></a>
	<a href="#global_par_echantillon">&gt; {{=_t('GLOBAL PAR ECHANTILLON', APPLNG)}}</a><br />
	<a href="#global_par_pays">&gt; {{=_t('GLOBAL PAR PAYS', APPLNG)}}</a><br />
	<a href="#details_par_echantillon_et_par_pays">&gt; {{=_t('DETAILS PAR PAYS ET PAR ECHANTILLON', APPLNG)}}</a><br />
	<a href="#details_par_pays_et_par_echantillon">&gt; {{=_t('DETAILS PAR ECHANTILLON ET PAR PAYS', APPLNG)}}</a><br />
	<div class="sep"></div>
	<a name="global_par_echantillon"></a><img src="{{=URL_SITE}}?imgform=1&txt={{=trad('GLOBAL PAR ECHANTILLON', APPLNG)}}&fc=0,0,0&bc=255,255,255&tp=15" alt="{{=trad('GLOBAL PAR ECHANTILLON', APPLNG)}}" title="{{=trad('GLOBAL PAR ECHANTILLON', APPLNG)}}" style="padding: 5px; border: solid 1px;" />
	
	<div class="sep"></div>
	<a href="#menu">{{=_t('Retour au menu', APPLNG)}}</a>
	<div class="sep"></div>
	
	<table class="liste">
	<thead>
		<tr>
			<th style="text-align: center;">{{=trad('Echantillon', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Stock initial', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Echantillons commandés', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Echantillons restants', APPLNG)}}</th>
		</tr>
	</thead>
	<tbody>
		{{$i = 0;}}
		{{$totalstock_sample = 0;}}
		{{$totalused_sample = 0;}}
		{{$totaldifferential_sample = 0;}}
		{{foreach($this -> par_echantillon as $ligne):}}
		<tr class="{{if ($i++ % 2 <> 0):}}im{{endif;}}pair">
			<td style="text-align: center;">{{=sl($ligne["name"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["total_stock"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["total_used"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["total_remaining"])}}</td>
		</tr>
		{{$totalstock_sample += $ligne["total_stock"];}}
		{{$totalused_sample += $ligne["total_used"];}}
		{{$totaldifferential_sample += $ligne["total_remaining"];}}
		{{endforeach;}}
		<tr class="total">
			<td style="text-align: center;">{{=trad("TOTAL", APPLNG)}}</td>
			<td style="text-align: center;">{{=sl($totalstock_sample)}}</td>
			<td style="text-align: center;">{{=sl($totalused_sample)}}</td>
			<td style="text-align: center;">{{=sl($totaldifferential_sample)}}</td>
		</tr>
	</tbody>
	</table>
	<div class="sep"></div>
	<div style="text-align: right">
		<u><strong>{{=trad('Exporter', APPLNG)}}</strong></u>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=par_echantillon&type_export=xls')}}"><img border="0" src="{{=URL_SITE}}/img/xls.png" title="Excel" alt="Excel" /></a>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=par_echantillon&type_export=pdf')}}"><img border="0" src="{{=URL_SITE}}/img/pdf.png" title="PDF" alt="PDF" /></a>
	</div>
	<div class="sep"></div>
	
		{{foreach($this -> par_echantillon as $ligne):}}
		<center>
			{{
				$camembert = new GP_Graph(); 
				
				$donnees = array(
					$ligne["total_used"],
					$ligne["total_remaining"]
				);
				
				$legendes = array(
					trad('Echantillons commandés', APPLNG)." [".$ligne["total_used"]."]",
					trad('Echantillons restants', APPLNG)." [".$ligne["total_remaining"]."]"
				);
				
				$titre = trad("Etat des stocks pour", APPLNG)." ".sl($ligne["name"]);
				
				echo camembert($titre, $legendes, $donnees);
				
			}}
		</center>
	<div class="sep"></div>
	{{endforeach;}}
	<center>
			{{				
				$camembert = new GP_Graph(); 
				
				$donnees = array(
					$totalused_sample,
					$totaldifferential_sample
				); 
				
				$legendes = array(
					trad('Echantillons commandés', APPLNG)." [".$totalused_sample."]",
					trad('Echantillons restants', APPLNG)." [".$totaldifferential_sample."]"
				); 
				
				$titre = trad("Etat global des stocks", APPLNG);
				
				echo camembert($titre, $legendes, $donnees);
				
			}}
		</center>
	<div class="sep"></div>
	<a name="global_par_pays"></a>
	<img src="{{=URL_SITE}}?imgform=1&txt={{=trad('GLOBAL PAR PAYS', APPLNG)}}&fc=0,0,0&bc=255,255,255&tp=15" alt="{{=trad('GLOBAL PAR PAYS', APPLNG)}}" title="{{=trad('GLOBAL PAR PAYS', APPLNG)}}" style="padding: 5px; border: solid 1px;" />
	
	<div class="sep"></div>
	<a href="#menu">{{=_t('Retour au menu', APPLNG)}}</a>
	<div class="sep"></div>
	
	<table class="liste">
	<thead>
		<tr>
			<th style="text-align: center;">{{=trad('Pays', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Stock initial', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Echantillons commandés', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Echantillons restants', APPLNG)}}</th>
			<th style="text-align: center; display: none;">{{=trad('Export', APPLNG)}}</th>
		</tr>
	</thead>
	<tbody>
		{{$i = 0;}}
		{{$totalstock_country = 0;}}
		{{$totalused_country = 0;}}
		{{$totaldifferential_country = 0;}}
		{{foreach($this -> par_pays as $ligne):}}
		<tr class="{{if ($i++ % 2 <> 0):}}im{{endif;}}pair">
			<td style="text-align: center;">{{=sl($ligne["name"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["total_stock"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["total_used"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["total_remaining"])}}</td>
			<td style="text-align: center; display: none;"><a href="{{=rw($this -> page, 'export_samples=1&w_export=pays&type_export=xls&id_country='.$ligne["id_country"])}}"><img border="0" src="{{=URL_SITE}}/img/xls.png" title="Excel" alt="Excel" /></a>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=pays&type_export=pdf&id_country='.$ligne["id_country"])}}"><img border="0" src="{{=URL_SITE}}/img/pdf.png" title="PDF" alt="PDF" /></a></td>
		</tr>
		{{$totalstock_country += $ligne["total_stock"];}}
		{{$totalused_country += $ligne["total_used"];}}
		{{$totaldifferential_country += $ligne["total_remaining"];}}
		{{endforeach;}}
		<tr class="total">
			<td style="text-align: center;">{{=trad("TOTAL", APPLNG)}}</td>
			<td style="text-align: center;">{{=sl($totalstock_country)}}</td>
			<td style="text-align: center;">{{=sl($totalused_country)}}</td>
			<td style="text-align: center;">{{=sl($totaldifferential_country)}}</td>
			<td style="text-align: center; display: none;">&nbsp;</td>
		</tr>
	</tbody>
	</table>
	
	<div class="sep"></div>
	<div style="text-align: right">
		<u><strong>{{=trad('Exporter', APPLNG)}}</strong></u>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=par_pays&type_export=xls')}}"><img border="0" src="{{=URL_SITE}}/img/xls.png" title="Excel" alt="Excel" /></a>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=par_pays&type_export=pdf')}}"><img border="0" src="{{=URL_SITE}}/img/pdf.png" title="PDF" alt="PDF" /></a>
	</div>
	<div class="sep"></div>
	
	{{foreach($this -> par_pays as $ligne):}}
		<center>
			{{
				$camembert = new GP_Graph(); 
				
				$donnees = array(
					$ligne["total_used"],
					$ligne["total_remaining"]
				);
				
				$legendes = array(
					trad('Echantillons commandés', APPLNG)." [".$ligne["total_used"]."]",
					trad('Echantillons restants', APPLNG)." [".$ligne["total_remaining"]."]"
				);
				
				$titre = trad("Etat des stocks pour", APPLNG)." ".sl($ligne["name"]);
				
				echo camembert($titre, $legendes, $donnees);
				
			}}
		</center>
	<div class="sep"></div>
	{{endforeach;}}
	<center>
			{{				
				$camembert = new GP_Graph(); 
				
				$donnees = array(
					$totalused_sample,
					$totaldifferential_sample
				); 
				
				$legendes = array(
					trad('Echantillons commandés', APPLNG)." [".$totalused_country."]",
					trad('Echantillons restants', APPLNG)." [".$totaldifferential_country."]"
				); 
				
				$titre = trad("Etat global des stocks par pays", APPLNG);
				
				echo camembert($titre, $legendes, $donnees);
				
			}}
		</center>
	<div class="sep"></div>
	<a name="details_par_echantillon_et_par_pays"></a>
	<img src="{{=URL_SITE}}?imgform=1&txt={{=trad('DETAILS PAR ECHANTILLON ET PAR PAYS', APPLNG)}}&fc=0,0,0&bc=255,255,255&tp=15" alt="{{=trad('DETAILS PAR ECHANTILLON ET PAR PAYS', APPLNG)}}" title="{{=trad('DETAILS PAR ECHANTILLON ET PAR PAYS', APPLNG)}}" style="padding: 5px; border: solid 1px;" />
	
	<div class="sep"></div>
	<a href="#menu">{{=_t('Retour au menu', APPLNG)}}</a>
	<div class="sep"></div>
	
	<table class="liste">
	<thead>
		<tr>
			<th style="text-align: center;">{{=trad('Echantillon', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('pays', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Stock initial', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Echantillons commandés', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Echantillons restants', APPLNG)}}</th>
			<th style="text-align: center; display: none;">{{=trad('Export', APPLNG)}}</th>
		</tr>
	</thead>
	<tbody>
		{{$detail_echantillon = array();}}
		{{$i = 0;}}
		{{$totalstock_sample = 0;}}
		{{$totalused_sample = 0;}}
		{{$totaldifferential_sample = 0;}}
		{{$totalstock_sub = 0;}}
		{{$totalused_sub = 0;}}
		{{$totaldifferential_sub = 0;}}
		{{$old_sample = '';}}
		{{foreach($this -> detail_par_echantillon as $ligne):}}
		{{if ($old_sample <> $ligne["sample"] && $i > 0):}}
		<tr class="subtotal">
			<td colspan="2" style="text-align: center;">{{=trad("TOTAL POUR", APPLNG)}} {{=strtoupper($old_sample)}}</td>
			<td style="text-align: center;">{{=sl($totalstock_sub)}}</td>
			<td style="text-align: center;">{{=sl($totalused_sub)}}</td>
			<td style="text-align: center;">{{=sl($totaldifferential_sub)}}</td>
			<td style="text-align: center; display: none;">&nbsp;</td>
		</tr>
		{{$totalstock_sub = 0;}}
		{{$totalused_sub = 0;}}
		{{$totaldifferential_sub = 0;}}
		{{endif;}}
		{{$old_sample = $ligne["sample"]}}
		{{
			$detail_echantillon[$ligne["sample"]]['pays'][] = $ligne["country"];
			$detail_echantillon[$ligne["sample"]]['stock'][] = $ligne["stock"];
			$detail_echantillon[$ligne["sample"]]['used'][] = $ligne["used"];
			$detail_echantillon[$ligne["sample"]]['remaining'][] = $ligne["remaining"];
		}}
		<tr class="{{if ($i++ % 2 <> 0):}}im{{endif;}}pair">
			<td style="text-align: center;">{{=sl($ligne["sample"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["country"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["stock"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["used"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["remaining"])}}</td>
			<td style="text-align: center; display: none;">
				<a href="{{=rw($this -> page, 'export_samples=1&w_export=pays_echantillon&type_export=xls&id_country='.$ligne["id_country"].'&id_sample='.$ligne["id_sample"])}}"><img border="0" src="{{=URL_SITE}}/img/xls.png" title="Excel" alt="Excel" /></a>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=pays_echantillon&type_export=pdf&id_country='.$ligne["id_country"].'&id_sample='.$ligne["id_sample"])}}"><img border="0" src="{{=URL_SITE}}/img/pdf.png" title="PDF" alt="PDF" /></a>
			</td>
		</tr>
		{{$totalstock_sample += $ligne["stock"];}}
		{{$totalused_sample += $ligne["used"];}}
		{{$totaldifferential_sample += $ligne["remaining"];}}
		{{$totalstock_sub += $ligne["stock"];}}
		{{$totalused_sub += $ligne["used"];}}
		{{$totaldifferential_sub += $ligne["remaining"];}}
		{{endforeach;}}
		<tr class="subtotal">
			<td colspan="2" style="text-align: center;">{{=trad("TOTAL POUR", APPLNG)}} {{=strtoupper($old_sample)}}</td>
			<td style="text-align: center;">{{=sl($totalstock_sub)}}</td>
			<td style="text-align: center;">{{=sl($totalused_sub)}}</td>
			<td style="text-align: center;">{{=sl($totaldifferential_sub)}}</td>
			<td style="text-align: center; display: none;">&nbsp;</td>
		</tr>
		<tr class="total">
			<td colspan="2" style="text-align: center;">{{=trad("TOTAL GLOBAL", APPLNG)}}</td>
			<td style="text-align: center;">{{=sl($totalstock_sample)}}</td>
			<td style="text-align: center;">{{=sl($totalused_sample)}}</td>
			<td style="text-align: center;">{{=sl($totaldifferential_sample)}}</td>
			<td style="text-align: center; display: none;">&nbsp;</td>
		</tr>
	</tbody>
	</table>
	<div class="sep"></div>
	<div style="text-align: right">
		<u><strong>{{=trad('Exporter', APPLNG)}}</strong></u>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=detail_par_echantillon&type_export=xls')}}"><img border="0" src="{{=URL_SITE}}/img/xls.png" title="Excel" alt="Excel" /></a>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=detail_par_echantillon&type_export=pdf')}}"><img border="0" src="{{=URL_SITE}}/img/pdf.png" title="PDF" alt="PDF" /></a>
	</div>
	
	<div class="sep"></div>
	
	{{foreach($detail_echantillon as $nomechantillon => $subtab):}}
	<center>
			{{				
				$camembert = new GP_Graph(); 
				
				$donnees = array(); 
				$legendes = array();
				
				for ($i = 0 ; $i < count($subtab['pays']) ; $i++)
				{
					$donnees[] = $subtab['stock'][$i];
					$legendes[] = $subtab['pays'][$i] . '['.$subtab['stock'][$i].']';
				}
				
				$titre = trad("Stock initial par pays pour", APPLNG) . " " . $nomechantillon;
				
				echo camembert($titre, $legendes, $donnees);
				
			}}
		</center>
	<div class="sep"></div>
	<center>
			{{				
				$camembert = new GP_Graph(); 
				
				$donnees = array(); 
				$legendes = array();
				
				for ($i = 0 ; $i < count($subtab['pays']) ; $i++)
				{
					$donnees[] = $subtab['used'][$i];
					$legendes[] = $subtab['pays'][$i] . '['.$subtab['used'][$i].']';
				}
				
				$titre = trad("Echantillons commandés par pays pour", APPLNG) . " " . $nomechantillon;
				
				echo camembert($titre, $legendes, $donnees);
				
			}}
		</center>
	<div class="sep"></div>
	<center>
			{{				
				$camembert = new GP_Graph(); 
				
				$donnees = array(); 
				$legendes = array();
				
				for ($i = 0 ; $i < count($subtab['pays']) ; $i++)
				{
					$donnees[] = $subtab['remaining'][$i];
					$legendes[] = $subtab['pays'][$i] . '['.$subtab['remaining'][$i].']';
				}
				
				$titre = trad("Echantillons restants par pays pour", APPLNG) . " " . $nomechantillon;
				
				echo camembert($titre, $legendes, $donnees);
				
			}}
		</center>
	<div class="sep"></div>
	{{endforeach;}}
	<a name="details_par_pays_et_par_echantillon"></a>
	<img src="{{=URL_SITE}}?imgform=1&txt={{=trad('DETAILS PAR PAYS ET PAR ECHANTILLON', APPLNG)}}&fc=0,0,0&bc=255,255,255&tp=15" alt="{{=trad('DETAILS PAR PAYS ET PAR ECHANTILLON', APPLNG)}}" title="{{=trad('DETAILS PAR PAYS ET PAR ECHANTILLON', APPLNG)}}" style="padding: 5px; border: solid 1px;" />
	
	<div class="sep"></div>
	<a href="#menu">{{=_t('Retour au menu', APPLNG)}}</a>
	<div class="sep"></div>
	
	<table class="liste">
	<thead>
		<tr>
			<th style="text-align: center;">{{=trad('pays', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Echantillon', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Stock initial', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Echantillons commandés', APPLNG)}}</th>
			<th style="text-align: center;">{{=trad('Echantillons restants', APPLNG)}}</th>
			<th style="text-align: center; display: none;">{{=trad('Export', APPLNG)}}</th>
		</tr>
	</thead>
	<tbody>
		{{$i = 0;}}
		{{$totalstock_sample = 0;}}
		{{$totalused_sample = 0;}}
		{{$totaldifferential_sample = 0;}}
		{{$totalstock_sub = 0;}}
		{{$totalused_sub = 0;}}
		{{$totaldifferential_sub = 0;}}
		{{$old_sample = '';}}
		{{$detail_pays = array();}}
		{{foreach($this -> detail_par_pays as $ligne):}}
		{{if ($old_sample <> $ligne["country"] && $i > 0):}}
		<tr class="subtotal">
			<td colspan="2" style="text-align: center;">{{=trad("TOTAL POUR", APPLNG)}} {{=strtoupper($old_sample)}}</td>
			<td style="text-align: center;">{{=sl($totalstock_sub)}}</td>
			<td style="text-align: center;">{{=sl($totalused_sub)}}</td>
			<td style="text-align: center;">{{=sl($totaldifferential_sub)}}</td>
			<td style="text-align: center; display: none;">&nbsp;</td>
		</tr>
		{{$totalstock_sub = 0;}}
		{{$totalused_sub = 0;}}
		{{$totaldifferential_sub = 0;}}
		{{endif;}}
		{{$old_sample = $ligne["country"]}}
		
		{{
			$detail_pays[$ligne["country"]]['sample'][] = $ligne["sample"];
			$detail_pays[$ligne["country"]]['stock'][] = $ligne["stock"];
			$detail_pays[$ligne["country"]]['used'][] = $ligne["used"];
			$detail_pays[$ligne["country"]]['remaining'][] = $ligne["remaining"];
		}}
		
		<tr class="{{if ($i++ % 2 <> 0):}}im{{endif;}}pair">
			<td style="text-align: center;">{{=sl($ligne["country"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["sample"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["stock"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["used"])}}</td>
			<td style="text-align: center;">{{=sl($ligne["remaining"])}}</td>
			<td style="text-align: center; display: none;">
				<a href="{{=rw($this -> page, 'export_samples=1&w_export=pays_echantillon&type_export=xls&id_country='.$ligne["id_country"].'&id_sample='.$ligne["id_sample"])}}"><img border="0" src="{{=URL_SITE}}/img/xls.png" title="Excel" alt="Excel" /></a>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=pays_echantillon&type_export=pdf&id_country='.$ligne["id_country"].'&id_sample='.$ligne["id_sample"])}}"><img border="0" src="{{=URL_SITE}}/img/pdf.png" title="PDF" alt="PDF" /></a>
			</td>
		</tr>
		{{$totalstock_sample += $ligne["stock"];}}
		{{$totalused_sample += $ligne["used"];}}
		{{$totaldifferential_sample += $ligne["remaining"];}}
		{{$totalstock_sub += $ligne["stock"];}}
		{{$totalused_sub += $ligne["used"];}}
		{{$totaldifferential_sub += $ligne["remaining"];}}
		{{endforeach;}}
		<tr class="subtotal">
			<td colspan="2" style="text-align: center;">{{=trad("TOTAL POUR", APPLNG)}} {{=strtoupper($old_sample)}}</td>
			<td style="text-align: center;">{{=sl($totalstock_sub)}}</td>
			<td style="text-align: center;">{{=sl($totalused_sub)}}</td>
			<td style="text-align: center;">{{=sl($totaldifferential_sub)}}</td>
			<td style="text-align: center; display: none;">&nbsp;</td>
		</tr>
		<tr class="total">
			<td colspan="2" style="text-align: center;">{{=trad("TOTAL GLOBAL", APPLNG)}}</td>
			<td style="text-align: center;">{{=sl($totalstock_sample)}}</td>
			<td style="text-align: center;">{{=sl($totalused_sample)}}</td>
			<td style="text-align: center;">{{=sl($totaldifferential_sample)}}</td>
			<td style="text-align: center; display: none;">&nbsp;</td>
		</tr>
	</tbody>
	</table>
	<div class="sep"></div>
	<div style="text-align: right">
		<u><strong>{{=trad('Exporter', APPLNG)}}</strong></u>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=detail_par_pays&type_export=xls')}}"><img border="0" src="{{=URL_SITE}}/img/xls.png" title="Excel" alt="Excel" /></a>
		&nbsp;&nbsp;&nbsp;
		<a href="{{=rw($this -> page, 'export_samples=1&w_export=detail_par_pays&type_export=pdf')}}"><img border="0" src="{{=URL_SITE}}/img/pdf.png" title="PDF" alt="PDF" /></a>
	</div>
	<div class="sep"></div>
	
	{{foreach($detail_pays as $nompays => $subtab):}}
	<center>
			{{				
				$camembert = new GP_Graph(); 
				
				$donnees = array(); 
				$legendes = array();
				
				for ($i = 0 ; $i < count($subtab['sample']) ; $i++)
				{
					$donnees[] = $subtab['stock'][$i];
					$legendes[] = $subtab['sample'][$i] . '['.$subtab['stock'][$i].']';
				}
				
				$titre = trad("Stock initial par échantillon pour", APPLNG) . " " . $nompays;
				
				echo camembert($titre, $legendes, $donnees);
				
			}}
		</center>
	<div class="sep"></div>
	<center>
			{{				
				$camembert = new GP_Graph(); 
				
				$donnees = array(); 
				$legendes = array();
				
				for ($i = 0 ; $i < count($subtab['sample']) ; $i++)
				{
					$donnees[] = $subtab['used'][$i];
					$legendes[] = $subtab['sample'][$i] . '['.$subtab['used'][$i].']';
				}
				
				$titre = trad("Echantillons commandés par échantillon pour", APPLNG) . " " . $nompays;
				
				echo camembert($titre, $legendes, $donnees);
				
			}}
		</center>
	<div class="sep"></div>
	<center>
			{{				
				$camembert = new GP_Graph(); 
				
				$donnees = array(); 
				$legendes = array();
				
				for ($i = 0 ; $i < count($subtab['sample']) ; $i++)
				{
					$donnees[] = $subtab['remaining'][$i];
					$legendes[] = $subtab['sample'][$i] . '['.$subtab['remaining'][$i].']';
				}
				
				$titre = trad("Echantillons restants par échantillon pour", APPLNG) . " " . $nompays;
				
				echo camembert($titre, $legendes, $donnees);
				
			}}
		</center>
	<div class="sep"></div>
	{{endforeach;}}
</div>